# Get user organizational units

This endpoint returns the list of organizational units (structure levels)
that the specified user has access to within the organization.

Behavior:

- Fetches organizational access data from the identity management service
- Returns only the organizational units the user is permitted to access
- Results are returned as a flat list of organizational units

Endpoint: GET /api/v1/users/{userId}/organization/structure/units

## Path parameters:

  - `userId` (string, required)

## Response 200 fields (text/plain):

  - `data` (array,null)

  - `data.accountOrgUnitId` (string)

  - `data.levelOrdinal` (integer)

  - `data.accountOrgUnitName` (string,null)

  - `data.accountOrgUnitCode` (string,null)

  - `data.parentAccountOrgUnitId` (string,null)

  - `data.subLevelUnits` (array,null)

  - `message` (string,null)

  - `isError` (boolean)

  - `messageCode` (integer)

  - `status` (string,null)

  - `errorType` (string,null)

  - `traceid` (string,null)

  - `responseDescription` (string,null)


